// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

package com.nnee.p_img.p_video;

import android.app.Activity;
import android.content.ComponentName;
import android.content.pm.ActivityInfo;
import android.content.pm.PackageManager;
import android.content.pm.PackageManager.NameNotFoundException;
import android.content.res.Resources;
import android.os.Bundle;
import java.util.ArrayList;
import java.util.Iterator;

// Referenced classes of package com.nnee.p_img.p_video:
//            t

public class cls_MonitoredActivity extends  Activity
{

    public cls_MonitoredActivity()
    {
    }

    private String b()
    {
        String s = null;
        ActivityInfo activityinfo=null;
		try {
			activityinfo = getPackageManager().getActivityInfo(c(), 128);
		} catch (NameNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
        Object obj = activityinfo;
        if(obj == null || ((ActivityInfo) (obj)).metaData == null) {
        	return s;
        }else {
        	int i = ((ActivityInfo) (obj)).metaData.getInt("logname");
            if(i <= 0) {
            	return s;
            }else {
            	String s1 = getResources().getString(i);
                s = s1;
            }
        }
        return s;
    }

    private ComponentName c()
    {
        ComponentName componentname = getComponentName();
        if(componentname == null)
            componentname = new ComponentName(this, getClass());
        return componentname;
    }

    public String a()
    {
        if(c == null)
            c = b();
        return c;
    }

    public void a(cls_t t1)
    {
        if(!a.contains(t1))
            a.add(t1);
    }

    public void b(cls_t t1)
    {
        a.remove(t1);
    }

    protected void onCreate(Bundle bundle)
    {
        super.onCreate(bundle);
        for(Iterator iterator = a.iterator(); iterator.hasNext(); ((cls_t)iterator.next()).a(this));
    }

    protected void onDestroy()
    {
        super.onDestroy();
        for(Iterator iterator = a.iterator(); iterator.hasNext(); ((cls_t)iterator.next()).b(this));
    }

    public boolean onSearchRequested()
    {
        return false;
    }

    protected void onStart()
    {
        super.onStart();
        for(Iterator iterator = a.iterator(); iterator.hasNext(); ((cls_t)iterator.next()).c(this));
    }

    protected void onStop()
    {
        super.onStop();
        for(Iterator iterator = a.iterator(); iterator.hasNext(); ((cls_t)iterator.next()).d(this));
    }

    private final ArrayList a = new ArrayList();
    private final String b = "logname";
    private String c;
}
